package neu.soft.service;

import neu.soft.entity.Inventory;
import neu.soft.vo.PageBean;
import neu.soft.vo.ResultBean;

import java.util.List;
import java.util.Map;

public interface InventoryService {
    ResultBean<PageBean<Map<String,Object>>> queryInventoryInfo(Map<String,Object> map);

    ResultBean<PageBean<Map<String,Object>>> showAllInventory(Map<String,Object> map);

    ResultBean<Integer> addInventory(Map<String,Object> map);

    void decreaseInventoryNum(Map<String,Object> map);

    ResultBean<Integer> deleteInventory(Map<String,Object> map);

    ResultBean<Integer> increaseInventoryNum(Map<String,Object> map);

    ResultBean<Integer> queryInventoryNum(Map<String,Object> map);

    List<Inventory> queryInventoryByCodeList(List<String> codeList);

    int existInventory(Map<String,Object> map);

    ResultBean<List<Map<String,Object>>> queryInventoryByWarehouseId(int warehouseId);
}
